﻿<%@ Page Title="Ligas" Language="C#" MasterPageFile="~/Views/Site1.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="BoxScore.liga.index" %>
<%@ Register src="../compartidas/_volver.ascx" tagname="_volver" tagprefix="uc1" %>
<%@ Register src="../compartidas/_noticias.ascx" tagname="_noticias" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contenido" runat="server">
    <h1 class="title">Ligas</h1>

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" GridLines="None"
        DataSourceID="ObjectDataSource1" AllowPaging="True">
        <Columns>
            <asp:TemplateField HeaderText="" SortExpression="logo">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("logo") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# "images/" + Eval("logo", "{0}") %>' Width="50px" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="" SortExpression="nombre">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("nombre") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%# "~/liga/detalle.aspx?id=" + Eval("id", "{0}") %>' Text='<%# Eval("nombre", "{0}") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="id" HeaderText="id" SortExpression="id" 
                Visible="False" />
            <asp:BoundField DataField="descripcion" HeaderText="descripcion" 
                SortExpression="descripcion" Visible="False" />
        </Columns>
        <EmptyDataTemplate>
            <asp:Label ID="Label2" runat="server" Font-Size="X-Large" 
                Text="No hay Ligas Registradas"></asp:Label>
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="getLigas" TypeName="BoxScore.Model.BoxScoreBD">
    </asp:ObjectDataSource>
</asp:Content>

<asp:Content runat="server" ContentPlaceHolderID="lateral1" ID="content3">
    
</asp:Content>




